<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1">
            <tr>
                <th>用户名</th>
                <th>密码</th>
                <th>图片</th>
                <th>类别</th>
                <th>操作</th>
                <th>修改</th>
            </tr>
            {% for item in user_list %}
                <tr>
                    <td>{{ item.username }}</td>
                    <td>{{ item.password }}</td>
                    <td><img src="/{{ item.img }}" alt="" width="50" height="50"></td>
                    {% if item.type == 1 %}
                        <td>超级用户</td>
                    {% else %}
                        <td>普通用户</td>
                    {% endif %}
                    <td>
                        <button><a href="/del?id={{ item.id }}">删除</a></button>
                    </td>
                    <td>
                        <button><a href="/update?id={{ item.id }}">修改</a></button>
                    </td>
            {% endfor %}
    </table>

</body>
</html>